package data.nanjing.expo.models.domain.base;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import java.util.Date;

/**
 * 用户基础信息
 *trade_user_info
 * @author ChanJi
 * @create 2018-02-26 15:11
 *
 **/

public class TradeUserInfo {
    /**
     * 主键、自增
     *用户id
     */
    private Integer userId;
    /**
     * 用户名
     */

    private String userName;
    /**
     * 手机号
     */

    private String userPhone;
    /**
     * qq
     */

    private String qq;

    /**
     * 微信
     */
    private  String weChat;
    /**
     * 密码
     */
    @JsonIgnore
    private String userPassword;

    /**
     * 头像地址
     */
    private String headImg;

    /**
     * 是否为服务商
     *非空，默认为0；0：非服务商，1：服务商
     */

    private Integer provide;
    /**
     * 是否为展商
     * 非空，默认为0；0:非展商，1：展商
     */

    private Integer exhibition;
    /**
     * 服务类别
     * 非空，默认为0;使用服务类型表中的id,一体化公司用逗号隔开;
     */
    private String  serviceType;
    /**
     * 添加账号类型，个人或是企业
     * 1.表示个人账号
     * 2.表示企业账号
     */
    private Integer accountType;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date gmtCreate;
    /**
     * 上次更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date  gmtModified;

    /**
     * 用户角色，存入的值从常量类Constants中获取，多个用户角色用逗号隔开
     */
    @JsonIgnore
    private String role;

    public TradeUserInfo() {

    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public String getWeChat() {
        return weChat;
    }

    public void setWeChat(String weChat) {
        this.weChat = weChat;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public String getHeadImg() {
        return headImg;
    }

    public void setHeadImg(String headImg) {
        this.headImg = headImg;
    }

    public Integer getProvide() {
        return provide;
    }

    public void setProvide(Integer provide) {
        this.provide = provide;
    }

    public Integer getExhibition() {
        return exhibition;
    }

    public void setExhibition(Integer exhibition) {
        this.exhibition = exhibition;
    }

    public String getServiceType() {
        return serviceType;
    }

    public void setServiceType(String serviceType) {
        this.serviceType = serviceType;
    }

    public Integer getAccountType() {
        return accountType;
    }

    public void setAccountType(Integer accountType) {
        this.accountType = accountType;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    @Override
    public String toString() {
        return "TradeUserInfo{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", userPhone='" + userPhone + '\'' +
                ", qq='" + qq + '\'' +
                ", weChat='" + weChat + '\'' +
                ", userPassword='" + userPassword + '\'' +
                ", headImg='" + headImg + '\'' +
                ", provide=" + provide +
                ", exhibition=" + exhibition +
                ", serviceType='" + serviceType + '\'' +
                ", accountType=" + accountType +
                ", gmtCreate=" + gmtCreate +
                ", gmtModified=" + gmtModified +
                ", role='" + role + '\'' +
                '}';
    }
}
